package com.yizhe.utils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class PhoneUtil {
	public static boolean isMobileNO(String mobiles) {

		Pattern p = Pattern.compile("1([\\d]{10})|((\\+[0-9]{2,4})?\\(?[0-9]+\\)?-?)?[0-9]{7,8}");

		Matcher m = p.matcher(mobiles);

		System.out.println(m.matches() + "---");

		return m.matches();
	}

	public static void main(String[] args) {
		String card = "1815422763";
		System.out.println("是否为银行卡:" + isMobileNO(card));
	}
}
